<?php
// +----------------------------------------------------------------------
// | DCloud [ WE CAN DO IT MORE SIMPLE ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2018 http://www.yunku.cloud All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: 小夏 < 449134904@qq.com>
// +----------------------------------------------------------------------
namespace app\admin\validate;

use think\Validate;

class CompanyUserValidate extends Validate
{
    protected $rule = [
        'mobile' => 'require|unique:user,user_login',
    ];
    protected $message = [
        'mobile.require' => '手机号不能为空',
        'mobile.unique'  => '手机号已注册',
    ];

    protected $scene = [
        'save'  => ['user_login', 'user_pass'],
    ];
}